package com.skyvin.nreceipts.admin.service;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.skyvin.nreceipts.admin.mongorepository.ReceiptCategoryTemplateRepository;
import com.skyvin.nreceipts.common.document.ReceiptCategoryTemplate;

@Service
public class ReceiptCategoryTemplateService {
	private static Logger logger = Logger.getLogger(ReceiptCategoryTemplateService.class);
	@Autowired
	private ReceiptCategoryTemplateRepository receiptCategoryTemplateRepository; 
	
	@Transactional
	public ReceiptCategoryTemplate save(ReceiptCategoryTemplate receiptCategory) {
		return receiptCategoryTemplateRepository.save(receiptCategory);
	}

	@Transactional
	public void delete(String receiptCategoryPID) {
		receiptCategoryTemplateRepository.delete(receiptCategoryPID);
		
	}

}
